import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constants'

// 处理患病时长
export const handleTime = (time: IllnessTime) => {
  return timeOptions.find((item) => item.value === time)?.label
}
// 处理是否就诊过
export const handleillness = (illnessType: 1 | 0) => {
  return flagOptions.find((item) => item.value === illnessType)?.label
}
